

        <g:set var="entityName" value="${message(code: 'teacherAttendance.label', default: 'TeacherAttendance')}" />
             <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="school"><g:message code="teacherAttendance.school.label" default="School" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherAttendanceInstance, field: 'school', 'errors')}">
                                    <g:select name="school.id" class="select" from="${School.list()}" optionKey="id" value="${teacherAttendanceInstance?.school?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="teacher"><g:message code="teacherAttendance.teacher.label" default="Teacher" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherAttendanceInstance, field: 'teacher', 'errors')}">
                                    <g:select name="teacher.id" class="select" from="${Teacher.list()}" optionKey="id" value="${teacherAttendanceInstance?.teacher?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="attendance"><g:message code="teacherAttendance.attendance.label" default="Attendance" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherAttendanceInstance, field: 'attendance', 'errors')}">
                                    <g:checkBox name="attendance" class="checkbox" value="${teacherAttendanceInstance?.attendance}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="leave"><g:message code="teacherAttendance.leave.label" default="Leave" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherAttendanceInstance, field: 'leave', 'errors')}">
                                    <g:checkBox name="leave" class="checkbox" value="${teacherAttendanceInstance?.leave}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="attendanceTime"><g:message code="teacherAttendance.attendanceTime.label" default="Attendance Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: teacherAttendanceInstance, field: 'attendanceTime', 'errors')}">
                                    <g:datePicker name="attendanceTime" class="select" precision="day" value="${teacherAttendanceInstance?.attendanceTime}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>